package cn.com.dhcc.adam.spring.validation;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.springframework.validation.DataBinder;
public class PersonForm {
	@NotNull
	@Size(max=64)
	private String name;
	@Min(0)
	private int age;
	
	public static void main(String[] args) {
		PersonForm pf = new PersonForm();
		DataBinder dbi = new DataBinder(pf);
		System.out.println(dbi);
	}
}
